/*
 * @Description: 静态路由
 */

import { RouteRecordRaw } from 'vue-router'

/**
 * @description 静态路由
 */
export const staticRoutes: RouteRecordRaw[] = [
  
  {
    path: '/',
    name: 'home',
    meta: {
      isHide: true,
    },
    component: () => import('@/views/home/index.vue'),
  },
  {
    path: '/login',
    name: 'login',
    meta: {
      isHide: true,
    },
    component: () => import('@/views/login/index.vue'),
  }, {
    path: '/register',
    name: 'register',
    meta: {
      isHide: true,
    },
    component: () => import('@/views/register/index.vue'),
  },
  // 此路由防止控制台出现No match found for location with path的警告
  {
    path: '/:catchAll(.*)',
    meta: {
      isHide: true,
    },
    component: () => import('@/views/error/error-404.vue'), //这个是我自己的路径
  },
 
]

/**
 * @description 路由未找到
 */
export const notFoundRouter = {
  path: '/:pathMatch(.*)*',
  name: 'notFound',
  redirect: '404',
}
